package com.union.core.doc.pojo;

import java.io.File;
import java.util.Date;
import java.util.List;

import com.union.core.doc.model.DocAttachment;
import com.union.core.doc.model.OfficialDoc;

public class OfficialDocPojo {
	private long id;
	private String doc_no;	   		 //公文编号
	private String doc_type;			 //文件类别
	private String belong_section;	 //所属单位
	private String confidential_level;//密级
	private String title;            //公文标题                                                    
	private String content;          //公文内容                   
	private String key_word; 	     //主题词
	private Date send_time;          //发送时间                                                    
	private String emergency_level;  //紧急程度                                                    
	private String template_id;        //模板ID                                                        
	private long seal_id;            //公章ID                                                        
	private String flow_flag = "0";        //流转标志：0-草稿，1-待签收，2-已签收（默认0）
	private boolean effect_flag = true;     //有效标志：1-有效，0-删除（默认1） 
	private String receive_section;//接收单位数组
	private Date opt_send_time;
	private String htmlFileName;
	private Date startDate;
	private Date endDate;
	private String condType;//查询类型 1-公文标题 2-公文文号
	private String condTxt;//查询条件
	/**
	 * 附件列表
	 */
	private List<DocAttachment> docAttachList;
	
	private File[] attach;
	private String[] attachFileName;
	private String[] attachContentType;
	private String[] attach_title;
	private String doc_file_name;//红头文件名称
	private String doc_file_path;//红头文件路径
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getSend_time() {
		return send_time;
	}
	public void setSend_time(Date send_time) {
		this.send_time = send_time;
	}
	public String getEmergency_level() {
		return emergency_level;
	}
	public void setEmergency_level(String emergency_level) {
		this.emergency_level = emergency_level;
	}
	public String getTemplate_id() {
		return template_id;
	}
	public void setTemplate_id(String template_id) {
		this.template_id = template_id;
	}
	public long getSeal_id() {
		return seal_id;
	}
	public void setSeal_id(long seal_id) {
		this.seal_id = seal_id;
	}
	public String getFlow_flag() {
		return flow_flag;
	}
	public void setFlow_flag(String flow_flag) {
		this.flow_flag = flow_flag;
	}
	public boolean isEffect_flag() {
		return effect_flag;
	}
	public void setEffect_flag(boolean effect_flag) {
		this.effect_flag = effect_flag;
	}
	public String getDoc_no() {
		return doc_no;
	}
	public void setDoc_no(String doc_no) {
		this.doc_no = doc_no;
	}
	public String getDoc_type() {
		return doc_type;
	}
	public void setDoc_type(String doc_type) {
		this.doc_type = doc_type;
	}
	public String getBelong_section() {
		return belong_section;
	}
	public void setBelong_section(String belong_section) {
		this.belong_section = belong_section;
	}
	public String getConfidential_level() {
		return confidential_level;
	}
	public void setConfidential_level(String confidential_level) {
		this.confidential_level = confidential_level;
	}
	public String getKey_word() {
		return key_word;
	}
	public void setKey_word(String key_word) {
		this.key_word = key_word;
	}
	public String getReceive_section() {
		return receive_section;
	}
	public void setReceive_section(String receive_section) {
		this.receive_section = receive_section;
	}
	public Date getOpt_send_time() {
		return opt_send_time;
	}
	public void setOpt_send_time(Date opt_send_time) {
		this.opt_send_time = opt_send_time;
	}
	
	public void copy(OfficialDoc officialDoc){
		this.id = officialDoc.getId();
		this.doc_no = officialDoc.getDoc_no();	   		 //公文编号
		this.doc_type = officialDoc.getDoc_type();			 //文件类别
		this.belong_section = officialDoc.getBelong_section();	 //所属单位
		this.confidential_level = officialDoc.getConfidential_level();//密级
		this.title = officialDoc.getTitle();            //公文标题                                                    
		this.content = officialDoc.getContent();          //公文内容                   
		this.key_word = officialDoc.getKey_word(); 	     //主题词
		this.send_time = officialDoc.getSend_time();          //发送时间                                                    
		this.emergency_level = officialDoc.getEmergency_level();  //紧急程度                                                    
		this.template_id = officialDoc.getTemplate_id();        //模板ID                                                        
		this.seal_id = officialDoc.getSeal_id();            //公章ID      
		this.receive_section = officialDoc.getReceive_section();
		this.doc_file_name = officialDoc.getDoc_file_name();
		this.doc_file_path = officialDoc.getDoc_file_path();
	}
	public String getHtmlFileName() {
		return htmlFileName;
	}
	public void setHtmlFileName(String htmlFileName) {
		this.htmlFileName = htmlFileName;
	}
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public String getCondType() {
		return condType;
	}
	public void setCondType(String condType) {
		this.condType = condType;
	}
	public String getCondTxt() {
		return condTxt;
	}
	public void setCondTxt(String condTxt) {
		this.condTxt = condTxt;
	}
	public List<DocAttachment> getDocAttachList() {
		return docAttachList;
	}
	public void setDocAttachList(List<DocAttachment> docAttachList) {
		this.docAttachList = docAttachList;
	}
	public File[] getAttach() {
		return attach;
	}
	public void setAttach(File[] attach) {
		this.attach = attach;
	}
	public String[] getAttachFileName() {
		return attachFileName;
	}
	public void setAttachFileName(String[] attachFileName) {
		this.attachFileName = attachFileName;
	}
	public String[] getAttachContentType() {
		return attachContentType;
	}
	public void setAttachContentType(String[] attachContentType) {
		this.attachContentType = attachContentType;
	}
	public String[] getAttach_title() {
		return attach_title;
	}
	public void setAttach_title(String[] attach_title) {
		this.attach_title = attach_title;
	}
	public String getDoc_file_path() {
		return doc_file_path;
	}
	public void setDoc_file_path(String doc_file_path) {
		this.doc_file_path = doc_file_path;
	}
	public String getDoc_file_name() {
		return doc_file_name;
	}
	public void setDoc_file_name(String doc_file_name) {
		this.doc_file_name = doc_file_name;
	}
}
